<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:U('VideoSplice/index')}">{:'视频列表'}</a></li>
		<li><a href="{:U('VideoSplice/add')}">{:'视频添加'}</a></li>
	</ul>
	<form method="post" class="js-ajax-form" action="{:U('Link/listorders')}">
		<div class="table-actions">
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDE')}</button>
		</div>
		<php>$status=array("processing"=>"处理中","success"=>"成功", "error"=>"失败");</php>
		<table class="table table-hover table-bordered table-list">
			<thead>
			<tr>
				<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
				<th width="50">ID</th>
				<th width="200">{:视频截图}</th>
				<th width="50">{:视频地址}</th>
				<th width="20">{:视频源Key值}</th>
				<th width="60">{:视频信息}</th>
				<th width="60">{:处理状态}</th>
				<th width="120">{:结束时间}</th>
				<th width="60">{:处理耗时}</th>
				<th width="60">{:L('ACTIONS')}</th>
			</tr>
			</thead>
			<tbody>
			<foreach name="videos" item="vo">
				<tr>
					<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
					<td>{$vo['id']}</td>
					<td width="200px"><img src="{$vo.thumb}" alt=""/></td>
					<td width="50px"><a href="{$domain}{$vo.key}" target="_blank">{$vo['key']}</a></td>
					<td width="20">{$vo['origin_key']}</td>
					<td>{$vo['info']}</td>
					<td>{$status[$vo['status']]}</td>
					<td>{$vo['endtime']|date="Y-m-d H:i:s",###}</td>
					<td>{($vo['endtime'])>0?($vo['endtime']-$vo['inputtime']):0} 秒</td>
					<td>
						<a href="{:U('VideoSplice/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>|
						<a href="{:U('VideoSplice/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
					</td>
				</tr>
			</foreach>
			</tbody>
		</table>
	</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>